package com.yysoft.admin.service;


import org.springframework.stereotype.Service;

import com.xkshow.plugins.page.PageList;
import com.xkshow.plugins.page.Pages;
import com.yysoft.admin.dao.MasterDao;
import com.yysoft.admin.entity.Master;

@Service
public class MasterService{
	private MasterDao masterDao;
	
	public Master get(java.io.Serializable id){
		return this.masterDao.getObject(Master.class, id);
	}
	public PageList findPageList(Pages pages,String queryString){
		return this.masterDao.findPageList(queryString, pages, null, true);
	}
	public void saveOrUpdate(Master entity){
		try {
			this.masterDao.saveOrUpdate(entity);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
	public void setMasterDao(MasterDao masterDao) {
		this.masterDao = masterDao;
	}
	

}
